/* 全局响应式设计 */

/* 大屏幕设备 (桌面) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* 中等屏幕设备 (平板横屏) */
@media (min-width: 992px) and (max-width: 1199px) {
  .container {
    max-width: 960px;
  }
}

/* 小屏幕设备 (平板竖屏) */
@media (min-width: 768px) and (max-width: 991px) {
  .container {
    max-width: 720px;
  }
}

/* 超小屏幕设备 (手机) */
@media (max-width: 767px) {
  .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* 特别小的屏幕设备 (小手机) */
@media (max-width: 480px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* 通用响应式工具类 */
.hidden-xs {
  display: block;
}

.hidden-sm {
  display: block;
}

.hidden-md {
  display: block;
}

.hidden-lg {
  display: block;
}

.visible-xs {
  display: none;
}

.visible-sm {
  display: none;
}

.visible-md {
  display: none;
}

.visible-lg {
  display: none;
}

/* 超小屏幕设备 */
@media (max-width: 767px) {
  .hidden-xs {
    display: none !important;
  }
  
  .visible-xs {
    display: block !important;
  }
  
  .text-center-xs {
    text-align: center !important;
  }
  
  .pull-left-xs {
    float: left !important;
  }
  
  .pull-right-xs {
    float: right !important;
  }
}

/* 小屏幕设备 */
@media (min-width: 768px) and (max-width: 991px) {
  .hidden-sm {
    display: none !important;
  }
  
  .visible-sm {
    display: block !important;
  }
  
  .text-center-sm {
    text-align: center !important;
  }
}

/* 中等屏幕设备 */
@media (min-width: 992px) and (max-width: 1199px) {
  .hidden-md {
    display: none !important;
  }
  
  .visible-md {
    display: block !important;
  }
  
  .text-center-md {
    text-align: center !important;
  }
}

/* 大屏幕设备 */
@media (min-width: 1200px) {
  .hidden-lg {
    display: none !important;
  }
  
  .visible-lg {
    display: block !important;
  }
  
  .text-center-lg {
    text-align: center !important;
  }
}

/* 响应式网格系统 */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.col {
  position: relative;
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

/* 超小屏幕设备 */
@media (max-width: 767px) {
  .col-xs-12 {
    width: 100%;
  }
  
  .col-xs-6 {
    width: 50%;
  }
  
  .col-xs-4 {
    width: 33.333333%;
  }
  
  .col-xs-3 {
    width: 25%;
  }
}

/* 小屏幕设备及以上 */
@media (min-width: 768px) {
  .col-sm-12 {
    width: 100%;
  }
  
  .col-sm-6 {
    width: 50%;
  }
  
  .col-sm-4 {
    width: 33.333333%;
  }
  
  .col-sm-3 {
    width: 25%;
  }
}

/* 中等屏幕设备及以上 */
@media (min-width: 992px) {
  .col-md-12 {
    width: 100%;
  }
  
  .col-md-6 {
    width: 50%;
  }
  
  .col-md-4 {
    width: 33.333333%;
  }
  
  .col-md-3 {
    width: 25%;
  }
}

/* 大屏幕设备及以上 */
@media (min-width: 1200px) {
  .col-lg-12 {
    width: 100%;
  }
  
  .col-lg-6 {
    width: 50%;
  }
  
  .col-lg-4 {
    width: 33.333333%;
  }
  
  .col-lg-3 {
    width: 25%;
  }
}

/* 响应式辅助类 */
@media (max-width: 767px) {
  .text-left-xs {
    text-align: left !important;
  }
  
  .text-right-xs {
    text-align: right !important;
  }
  
  .no-padding-xs {
    padding: 0 !important;
  }
  
  .no-margin-xs {
    margin: 0 !important;
  }
  
  .p-10-xs {
    padding: 10px !important;
  }
  
  .m-10-xs {
    margin: 10px !important;
  }
}

/* 响应式按钮 */
@media (max-width: 767px) {
  .btn-block-xs {
    display: block;
    width: 100%;
  }
  
  .btn-group-xs .btn {
    display: block;
    width: 100%;
    margin-bottom: 5px;
  }
}

/* 响应式表单 */
@media (max-width: 767px) {
  .form-inline-xs .form-group {
    display: block;
    margin-bottom: 15px;
  }
  
  .form-inline-xs .form-control {
    display: block;
    width: 100%;
  }
}